<?php

class init {

    public static function run() {
        load('@.FileUtil');
        $f = new FileUtil();
        $res = init::getPaths();
        foreach ($res as $str) {
            if ($f->notfate_any_mkdir($str, $mode)) {
                echo '创建'.$str.'成功<br/>';
            }
        }
    }

    private function getPaths() {
        $ltpath = 'Lt/';
        $apppath = 'apps/Tpl/';
        $langs = 'apps/Lang/';
        //初始目录
        $arr = array(
            'Public/js',
            'Public/images',
            'Public/css',
            $ltpath . 'Extend/Behavior',
            $ltpath . 'Extend/Driver',
            $ltpath . 'Extend/Library/ORG/Util',
            $ltpath . 'Extend/Vendor',
            $apppath . 'Admin/default/Public/js',
            $apppath . 'Admin/default/Public/css',
            $apppath . 'Admin/default/Public/images',
            $apppath . 'Home/default/Public/js',
            $apppath . 'Home/default/Public/css',
            $apppath . 'Home/default/Public/images',
            $apppath . 'Admin/default/Public/images',
            $langs . 'zh-cn/Admin',
            $langs . 'zh-cn/Home',
        );
        return $arr;
    }

}

?>
